#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.web.action;

import guda.grape.util.RequestUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by well on 15/10/15.
 */
@Controller
public class IndexAction {

    @RequestMapping(value = "**/*.htm", method = RequestMethod.GET)
    public String list(HttpServletRequest request, ModelMap modelMap) {
        request.getSession().setAttribute("abc","123");

        return RequestUtil.resolveVM(request);
    }

    @RequestMapping(value = "index2.htm", method = RequestMethod.GET)
    public String list2(HttpServletRequest request, ModelMap modelMap) {
        Object abc = request.getSession().getAttribute("abc");
        modelMap.put("e",abc);

        return RequestUtil.resolveVM(request);
    }

}
